package com.superteam.mac.service;

import java.util.List;

import com.superteam.mac.mode.MacUser;

public class UserService extends BaseService {
	
	public List<MacUser> findAllUsers()
	{
		return this.getUserDAO().findAllUser();
	}
	
	public MacUser findOldUser(MacUser user)
	{
		MacUser olduser = this.getUserDAO().findByName(user.getUserName());
		
		return olduser;
	}
	
	public boolean updateUser(MacUser user)
	{
		
		return this.getUserDAO().updateUser(user);
	}
	
	
}
